//
//  YTTDataTableViewCell.m
//  跑圈儿
//
//  Created by dllo on 16/4/26.
//  Copyright © 2016年 唐康. All rights reserved.
//

#import "YTTDataTableViewCell.h"

@implementation YTTDataTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.dataLable = [[UILabel alloc] init];
        [self.contentView addSubview:self.dataLable];
        self.dataLable.backgroundColor = [UIColor colorWithRed:236 / 255.0 green:236 / 255.0  blue:236 / 255.0 alpha:0.9];
        
        self.miterL = [[UILabel alloc] init];
        [self.contentView addSubview:self.miterL];
        self.miterL.backgroundColor = [UIColor clearColor];
        
        self.firstLine = [[UIView alloc] init];
        self.firstLine.backgroundColor = [UIColor lightGrayColor];
        [self.contentView addSubview:self.firstLine];
        
        self.timerL = [[UILabel alloc] init];
        [self.contentView addSubview:self.timerL];
        self.timerL.backgroundColor = [UIColor clearColor];
        
        self.secondLine = [[UIView alloc] init];
        self.secondLine.backgroundColor = [UIColor lightGrayColor];
        [self.contentView addSubview:self.secondLine];
        
        self.caloriL = [[UILabel alloc] init];
        [self.contentView addSubview:self.caloriL];
        self.caloriL.backgroundColor = [UIColor clearColor];
        
        self.img = [[UIImageView alloc] init];
        [self.contentView addSubview:self.img];
        self.img.backgroundColor = [UIColor clearColor];
        
        
        
        
    }
    
    
    return self;
    
    
    
    
}









-(void)layoutSubviews{
    [super layoutSubviews];
    
    self.dataLable.frame = CGRectMake(0, 0, YTTScreenW, 25);
    self.img.frame = CGRectMake(5, 20, 60, 60);
    self.miterL.frame = CGRectMake(self.img.frame.size.width + 15, 30, 90, 50);
    self.firstLine.frame = CGRectMake(self.img.frame.size.width + self.miterL.frame.size.width + 10, 43, 2, 30);
    
    self.timerL.frame = CGRectMake(self.img.frame.size.width + self.miterL.frame.size.width + 20, 30, 100, 50);
    self.secondLine.frame = CGRectMake(self.img.frame.size.width + self.timerL.frame.size.width + 115, 43, 2, 30);
    
    self.caloriL.frame = CGRectMake(self.img.frame.size.width + self.timerL.frame.size.width + 115, 30, 90, 50);
    
    
    
}




















- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
